<extend name="extends/extend" />
<block name="loadCss">
</block>
<block name="script">
    <!-- sweetalert js -->
    <script src="__admin__/js/plugins/sweetalert/sweetalert.min.js"></script>

</block>
<block name="content">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>菜单列表</h5>
                        <div class="ibox-tools">
                            <a href="javascript:location.reload(true);" class="btn btn-outline btn-info btn-xs">
                                <i class="fa fa-refresh"></i> 刷新
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-12 m-b-xs">
                                <div class="btn-group">
                                    <a href="{:url('Setting/createNav')}" class="btn btn-info btn-rounded" type="button">新增菜单</a>
                                </div>
                            </div>
                        </div>
                        <div class="table-responsive">
                            <table class="table table-striped">
                                <thead>
                                <tr>
                                    <th>序</th>
                                    <th>菜单名</th>
                                    <th>链接(模块/控制器/方法 OR #)</th>
                                    <th>图标</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <notempty name="navList">
                                    <volist name="navList" id="v">
                                        <tr>
                                            <td>{$i}</td>
                                            <td>{$v.preffix}{$v.title}</td>
                                            <td>{$v.name}</td>
                                            <td>{$v.ico}</td>
                                            <td>{$v.status}</td>
                                            <td>
                                                <a href="{:url('Setting/createNav',['admin_nav_id'=>$v['admin_nav_id']])}" class="btn btn-success btn-sm">添加子菜单</a>
                                                <a href="{:url('Setting/editNav',['admin_nav_id'=>$v['admin_nav_id']])}" class="btn btn-warning btn-sm">编辑</a>
                                                <a href="{:url('Setting/deleteNav',['admin_nav_id'=>$v['admin_nav_id']])}" class="btn btn-danger btn-sm">删除</a>
                                            </td>
                                        </tr>
                                    </volist>
                                    <else />
                                    <tr>
                                        <td colspan="7" align="center">暂无数据!</td>
                                    </tr>
                                </notempty>

                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>
</block>